/*
 * @Descripttion: vue and node-bs
 * @Author: weijunliang-jul
 * @Date: 2021-02-25 16:12:47
 * @LastEditors: weijunliang-jul
 * @LastEditTime: 2021-02-25 17:35:08
 */

import request from '@/utils/request'

// 获取所有邮箱
export function getEmails() {
    return request({
        url: "/admin/getEmails",
        method: "get",
    })
}


// 发送邮件
export function toSendEmail(Form) {
    return request({
        url: "/admin/toSendEmail",
        method: "post",
        data: Form,
        // headers: {
        //   "Content-Type": "multipart/form-data",
        // },
    })
}


// markdown加入图片存储图片 接口 (存储到服务器)
export function emailImages(formdata) {
    return request({
        url: "/admin/emailImages",
        method: "post",
        data: formdata,
        headers: {
          "Content-Type": "multipart/form-data",
        },
    })
}